@import "./variables.module.scss";
@import "./mixin.scss";
@import "./transition.scss";
@import "./element-ui.scss";
@import "./sidebar.scss";
@import "./btn.scss";
@import "./common.scss";

body {
	height: 100%;
	margin: 0;
	-moz-osx-font-smoothing: grayscale;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	font-family: SourceNormal, Helvetica Neue, Helvetica, PingFang SC-Bold, PingFang SC, Hiragino Sans GB, Microsoft YaHei, Arial,
		sans-serif;
}

label {
	font-weight: 700;
}

html {
	height: 100%;
	box-sizing: border-box;
}

#app {
	height: 100%;
}

*,
*:before,
*:after {
	box-sizing: inherit;
}

.no-padding {
	padding: 0px !important;
}
.one-line {
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
}
.one-line-max-width {
	max-width: 300px;
}
.padding-content {
	padding: 4px 0;
}

a:focus,
a:active {
	outline: none;
}

a,
a:focus,
a:hover {
	cursor: pointer;
	color: inherit;
	text-decoration: none;
}

div:focus {
	outline: none;
}

.fr {
	float: right;
}

.fl {
	float: left;
}

.pr-5 {
	padding-right: 5px;
}

.pl-5 {
	padding-left: 5px;
}

.block {
	display: block;
}

.pointer {
	cursor: pointer;
}
.default {
	cursor: default;
}
.inlineBlock {
	display: block;
}

.clearfix {
	&:after {
		visibility: hidden;
		display: block;
		font-size: 0;
		content: " ";
		clear: both;
		height: 0;
	}
}

aside {
	background: #eef1f6;
	padding: 8px 24px;
	margin-bottom: 20px;
	border-radius: 2px;
	display: block;
	line-height: 32px;
	font-size: 16px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans",
		"Helvetica Neue", sans-serif;
	color: #2c3e50;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;

	a {
		color: #337ab7;
		cursor: pointer;

		&:hover {
			color: rgb(32, 160, 255);
		}
	}
}

//main-container全局样式
.app-container {
	padding: 0 20px 20px;
	height: 100%;
}

.components-container {
	margin: 30px 50px;
	position: relative;
}

.text-center {
	text-align: center;
}

.sub-navbar {
	height: 50px;
	line-height: 50px;
	position: relative;
	width: 100%;
	text-align: right;
	padding-right: 20px;
	transition: 600ms ease position;
	background: linear-gradient(
		90deg,
		rgba(32, 182, 249, 1) 0%,
		rgba(32, 182, 249, 1) 0%,
		rgba(33, 120, 241, 1) 100%,
		rgba(33, 120, 241, 1) 100%
	);

	.subtitle {
		font-size: 20px;
		color: #fff;
	}

	&.draft {
		background: #d0d0d0;
	}

	&.deleted {
		background: #d0d0d0;
	}
}

.link-type,
.link-type:focus {
	color: #337ab7;
	cursor: pointer;

	&:hover {
		color: rgb(32, 160, 255);
	}
}

.filter-container {
	padding-bottom: 10px;

	.filter-item {
		display: inline-block;
		vertical-align: middle;
		margin-bottom: 10px;
	}
}
.table-box {
	display: flex;
	flex-direction: column;
	height: 100%;
	.table-search {
		padding: 18px 20px 0;
		background-color: #fff;
		border-radius: 4px;
		margin-bottom: 12px;
		.el-button {
			padding: 4px 20px 4px 10px;
			.iconfont {
				font-size: 24px;
				padding-right: 4px;
			}
			&.button-reset {
				color: var(--el-color-primary);
			}
		}
	}
	.table-main {
		flex: 1;
		background-color: #fff;
		border-radius: 4px;
		padding: 20px;
		display: flex;
		flex-direction: column;
		position: relative;
		overflow: hidden;
		.el-button--danger.is-link {
			--el-button-hover-link-text-color: var(--el-color-danger);
		}
		.table-el-button {
			padding-bottom: 20px;
			.el-button:not(.is-circle) {
				border-radius: 18px;
				padding: 4px 20px 4px 10px;
				.iconfont {
					font-size: 24px;
					padding-right: 4px;
				}
				&.button-reset {
					color: var(--el-color-primary);
				}
			}
			&.pb0 {
				padding-bottom: 0;
			}
			.table-el-button-right {
				margin-left: auto;
				margin-right: 5px;
			}
		}
		.vxe-table--render-default.border--default .vxe-table--header-wrapper,
		.vxe-table--render-default.border--full .vxe-table--header-wrapper,
		.vxe-table--render-default.border--outer .vxe-table--header-wrapper {
			background-color: #f3f6fa;
		}
		.vxe-table--render-default .vxe-body--row.row--stripe {
			background-color: #f3f6fa;
		}
		.el-table {
			border: 1px solid #ebebeb;
			border-radius: 4px;
			overflow: hidden;
			&.el-table--striped {
				.el-table__body {
					tr.el-table__row--striped {
						td.el-table__cell {
							background: #f3f6fa;
						}
					}
				}
			}
			.el-table__inner-wrapper {
				&::before {
					display: none;
				}
				.el-table__body {
					border: none;
					// tbody {
					// 	tr:nth-child(even) {
					// 		background-color: #f3f6fa;
					// 	}
					// 	tr:last-child {
					// 		td {
					// 			border-bottom: none;
					// 		}
					// 	}
					// }
				}
				.el-checkbox {
					.el-checkbox__input {
						&.is-checked {
							.el-checkbox__inner {
								background: none;
								font-family: "iconfont";
								color: var(--el-checkbox-checked-bg-color);
								font-size: 26px;
								&::after {
									content: "\e60e";
									transition: none;
									transform: none;
									width: auto;
									border: none;
									left: -5px;
									top: -6px;
								}
							}
						}
					}
				}
			}
			.sxzMust {
				color: #f56c6c;
				font-size: 11px;
				text-align: left;
				position: relative;
			}
		}
		.table-column-link {
			color: var(--el-color-primary);
		}
	}
}
.tree-table-box {
	display: flex;
	.tree-selected {
		margin-top: -20px;
		line-height: 45px;
		font-size: 14px;
		font-weight: bold;
		color: #333333;
		span {
			color: #6283ef;
		}
	}
	.table-box {
		width: calc(100% - 306px);
	}
}
.app-tabs-box {
	display: flex;
	flex-direction: column;
	.tabs-box {
		width: 100%;
		height: 40px;
		background: #ffffff;
		.el-tabs__header {
			.el-tabs__nav-wrap::after {
				display: none;
			}
			.el-tabs__item {
				padding: 0 22px !important;
			}
		}
	}
	.tab-pane-box {
		padding-top: 12px;
		flex: 1;
		display: flex;
		overflow: hidden;
		.tab-pane-left {
			width: 295px;
			background: #ffffff;
			padding: 24px;
			border-radius: 4px 4px 4px 4px;
			flex: none;
			position: relative;
			.save-button {
				position: absolute;
				left: 0;
				padding: 0 24px;
				bottom: 80px;
				width: 100%;
				z-index: 9;
				button {
					width: 100%;
				}
			}
		}
		.tab-pane-right {
			margin-left: 12px;
			flex: 1;
			overflow: hidden;
		}
	}
}
.avatar-uploader-large {
	display: flex;
	font-size: 50px;
	color: #8c939d;
	width: 156px;
	height: 156px;
	padding: 6px;
	justify-content: center;
	align-items: center;
}
.avatar-uploader-img {
	cursor: pointer;
	margin-left: 10px;
	width: 32px;
	height: 32px;
}
.dashed-border {
	border: 1px dashed #ccc;
	border-radius: 4px;
}
.shape-checkbox {
	display: flex;
	flex-direction: column;
}
.attr-box {
	width: 100%;
	background: #fff;
	padding: 16px;
	.el-select,
	.el-input {
		width: 168px;
	}
	.attr-more-btn {
		display: flex;
		align-items: center;
		color: var(--el-color-primary);
		padding-bottom: 22px;
		cursor: pointer;
		.iconfont {
			font-size: 24px;
		}
		p {
			padding: 0;
			margin: 0;
			padding-left: 4px;
		}
	}
	.el-form--inline {
		.el-form-item--default {
			margin-right: 12px;
		}
	}
	.attr-image {
		&-intro {
			color: #999999;
			line-height: 20px;
			padding-top: 10px;
			text-align: center;
		}
		&-upload {
			.iconfont {
				font-size: 30px;
			}
		}
	}
	.attr-public-box {
		min-height: 150px;
	}
	.attr-model-box {
		background: #fafbfd;
		.el-col:first-child {
			padding-top: 18px;
		}
		dl {
			display: flex;
			margin: 0;
			padding: 0;
			dt {
				font-size: 14px;
				line-height: 32px;
				text-align: right;
				flex: none;
				padding-left: 20px;
			}
			dd {
				margin: 0;
				padding: 0;
				display: flex;
				flex-wrap: wrap;
				.el-select,
				.el-input {
					width: 132px;
				}
				.detail-address {
					width: 592px;
				}
			}
		}
	}
	.attr-save-btn {
		padding-top: 32px;
		button {
			width: 140px;
			height: 36px;
			border-radius: 4px;
		}
	}
}
.full-box {
	width: 100% !important;
}
.resource-drawer {
	.drawer-notice-span {
		font-size: 12px;
		color: #999999;
		padding-left: 8px;
		line-height: 18px;
	}
	.drawer-title {
		display: flex;
		align-items: center;
		justify-content: space-between;
		padding-top: 6px;
		h2 {
			font-size: 16px;
			font-weight: bold;
			color: #333333;
			line-height: 22px;
		}
		p {
			width: 90px;
			height: 24px;
			background: #58b87a;
			border-radius: 12px;
			display: flex;
			align-items: center;
			justify-content: center;
			color: #ffffff;
			font-size: 14px;
			i {
				width: 6px;
				height: 6px;
				background: #ffffff;
				border-radius: 6px;
				display: inline-block;
				margin-right: 4px;
			}
			&.close {
				background: #cccccc;
			}
		}
	}
	.drawer-base {
		h3 {
			font-size: 16px;
			font-weight: bold;
			color: #333333;
			line-height: 22px;
			padding: 24px 0 12px;
		}
		&-info {
			width: 100%;
			background: #fafbfd;
			padding: 0 16px 16px;
			p,
			.dict-tag-info {
				padding-top: 16px;
				font-size: 14px;
				color: #666666;
				line-height: 20px;
				span {
					color: #999999;
					padding-right: 12px;
				}
			}
			.dict-tag-info {
				span {
					color: #666666;
					padding-right: 0;
				}
			}
			.el-input,
			.el-select {
				max-width: 168px;
			}
		}
	}
	.drawer-history {
		padding: 0;
	}
}
.fullbox-drawer {
	.el-drawer__body {
		padding: 0 !important;
	}

	.drawer-title,
	.drawer-base {
		padding: 0 20px;
	}
	.drawer-title {
		padding-top: 20px;
	}
}
.iconWIFI {
	&.iconfont {
		font-size: 24px;
	}
	&.icon-yilianjie {
		color: var(--el-color-primary);
	}
	&.icon-weilianjie {
		color: #d4d8e1;
	}
}

.hot-display-license-info {
	display: none !important;
}

::-webkit-scrollbar-track-piece {
	background: #d3dce6;
}
::-webkit-scrollbar {
	width: 6px;
	height: 10px;
}
::-webkit-scrollbar-thumb {
	background: #99a9bf;
	border-radius: 20px;
}
/* 隐藏自动填充的样式 */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus,
select:-webkit-autofill,
select:-webkit-autofill:hover,
select:-webkit-autofill:focus {
	-webkit-text-fill-color: inherit !important;
	-webkit-box-shadow: 0 0 0px 1000px white inset !important;
}
